package com.ctsi.ssdc.domain;

import com.ctsi.ssdc.annotation.AutoId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.ZonedDateTime;

/**
 * @author ctsi-biyi-generator
*/
@ApiModel(description = "LitemallFeedback")
public class LitemallFeedback implements Serializable {
    /**
     * @Fields id 
     */
    @ApiModelProperty("")
    @AutoId(primaryKey = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Integer id;

    /**
     * @Fields userId 用户表的用户ID
     */
    @ApiModelProperty("userId")
    private Integer userId;

    /**
     * @Fields username 用户名称
     */
    @ApiModelProperty("username")
    private String username;

    /**
     * @Fields mobile 手机号
     */
    @ApiModelProperty("mobile")
    private String mobile;

    /**
     * @Fields feedType 反馈类型
     */
    @ApiModelProperty("feedType")
    private String feedType;

    /**
     * @Fields content 反馈内容
     */
    @ApiModelProperty("content")
    private String content;

    /**
     * @Fields status 状态
     */
    @ApiModelProperty("status")
    private Integer status;

    /**
     * @Fields hasPicture 是否含有图片
     */
    @ApiModelProperty("hasPicture")
    private Boolean hasPicture;

    /**
     * @Fields picUrls 图片地址列表，采用JSON数组格式
     */
    @ApiModelProperty("picUrls")
    private String picUrls;

    /**
     * @Fields addTime 创建时间
     */
    @ApiModelProperty("addTime")
    private ZonedDateTime addTime;

    /**
     * @Fields updateTime 更新时间
     */
    @ApiModelProperty("updateTime")
    private ZonedDateTime updateTime;

    /**
     * @Fields deleted 逻辑删除
     */
    @ApiModelProperty("deleted")
    private Boolean deleted;

    private static final long serialVersionUID = 1L;

    /** 
     * @return id 
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /** 
     * @return user_id 用户表的用户ID
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * @param userId 用户表的用户ID
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /** 
     * @return username 用户名称
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username 用户名称
     */
    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    /** 
     * @return mobile 手机号
     */
    public String getMobile() {
        return mobile;
    }

    /**
     * @param mobile 手机号
     */
    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    /** 
     * @return feed_type 反馈类型
     */
    public String getFeedType() {
        return feedType;
    }

    /**
     * @param feedType 反馈类型
     */
    public void setFeedType(String feedType) {
        this.feedType = feedType == null ? null : feedType.trim();
    }

    /** 
     * @return content 反馈内容
     */
    public String getContent() {
        return content;
    }

    /**
     * @param content 反馈内容
     */
    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    /** 
     * @return status 状态
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * @param status 状态
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /** 
     * @return has_picture 是否含有图片
     */
    public Boolean getHasPicture() {
        return hasPicture;
    }

    /**
     * @param hasPicture 是否含有图片
     */
    public void setHasPicture(Boolean hasPicture) {
        this.hasPicture = hasPicture;
    }

    /** 
     * @return pic_urls 图片地址列表，采用JSON数组格式
     */
    public String getPicUrls() {
        return picUrls;
    }

    /**
     * @param picUrls 图片地址列表，采用JSON数组格式
     */
    public void setPicUrls(String picUrls) {
        this.picUrls = picUrls == null ? null : picUrls.trim();
    }

    /** 
     * @return add_time 创建时间
     */
    public ZonedDateTime getAddTime() {
        return addTime;
    }

    /**
     * @param addTime 创建时间
     */
    public void setAddTime(ZonedDateTime addTime) {
        this.addTime = addTime;
    }

    /** 
     * @return update_time 更新时间
     */
    public ZonedDateTime getUpdateTime() {
        return updateTime;
    }

    /**
     * @param updateTime 更新时间
     */
    public void setUpdateTime(ZonedDateTime updateTime) {
        this.updateTime = updateTime;
    }

    /** 
     * @return deleted 逻辑删除
     */
    public Boolean getDeleted() {
        return deleted;
    }

    /**
     * @param deleted 逻辑删除
     */
    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        LitemallFeedback other = (LitemallFeedback) that;
        return (this.getId() == null ? other.getId() == null :
				 this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null :
				 this.getUserId().equals(other.getUserId()))
            && (this.getUsername() == null ? other.getUsername() == null :
				 this.getUsername().equals(other.getUsername()))
            && (this.getMobile() == null ? other.getMobile() == null :
				 this.getMobile().equals(other.getMobile()))
            && (this.getFeedType() == null ? other.getFeedType() == null :
				 this.getFeedType().equals(other.getFeedType()))
            && (this.getContent() == null ? other.getContent() == null :
				 this.getContent().equals(other.getContent()))
            && (this.getStatus() == null ? other.getStatus() == null :
				 this.getStatus().equals(other.getStatus()))
            && (this.getHasPicture() == null ? other.getHasPicture() == null :
				 this.getHasPicture().equals(other.getHasPicture()))
            && (this.getPicUrls() == null ? other.getPicUrls() == null :
				 this.getPicUrls().equals(other.getPicUrls()))
            && (this.getAddTime() == null ? other.getAddTime() == null :
				 this.getAddTime().equals(other.getAddTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null :
				 this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getDeleted() == null ? other.getDeleted() == null :
				 this.getDeleted().equals(other.getDeleted()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
        result = prime * result + ((getFeedType() == null) ? 0 : getFeedType().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getHasPicture() == null) ? 0 : getHasPicture().hashCode());
        result = prime * result + ((getPicUrls() == null) ? 0 : getPicUrls().hashCode());
        result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        return result;
    }
}